<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('address/index',['type'=>$type])}">地址管理</a></li>
        <li class="active"><a href="{:url('address/add')}">添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('address/addPost')}">
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>国家:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="country" placeholder="国家">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>省/州:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="province" placeholder="省/州">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>市/区:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="city" placeholder="市/区">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>详细地址:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="detail" placeholder="详细地址">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>收货人:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="receive" placeholder="收货人">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>联系方式:</label>
            <div class="col-md-1 col-sm-10">
                <input type="text" class="form-control" name="zone" placeholder="区号">
            </div>
            <div class="col-md-5 col-sm-10">
                <input type="number" class="form-control" name="contact" placeholder="联系方式">
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>邮编:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="zip" value="" placeholder="邮编">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span class="form-required">*</span>对应编号:</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="code" value="" placeholder="对应编号">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">类型:</label>
            <div class="col-md-6 col-sm-10">
                <select name="type" class="form-control">
                    <option value="1" <if condition="$type eq 1">selected</if>>驿站</option>
                    <option value="2" <if condition="$type eq 2">selected</if>>小站</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态:</label>
            <div class="col-md-6 col-sm-10">
                <select name="status" class="form-control">
                    <foreach name="arrStatus" key="k" item="vo">
                        <option value="{$k}" >{$vo}</option>
                    </foreach>
                </select>
            </div>
        </div>

        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
            <a class="btn btn-default" href="{:url('address/index')}">返回</a>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>